package com.ys.enume.flow;

public class YsProcInstEnum {
	
	public enum StateFlow {
		INIT("制单", 0), PROCESS("审批中", 1), FINISH("已完成", 2), DELETED("已删除", 3);
		public String name;
		public Integer value;

		private StateFlow(String name, Integer value) {
			this.name = name;
			this.value = value;
		}

		public static String getName(int value) {
			for (StateFlow e : StateFlow.values()) {
				if (e.value == value) {
					return e.name;
				}
			}

			return "";
		}
	}
}
